package org.example.book.bridge;

import org.example.book.pojo.UserInfo;
import org.example.book.repo.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author jeff
 */
@Component
public class RegisterLoginByGitee extends AbstractRegisterLoginFunc implements RegisterLoginFuncInterface{

    @Autowired
    private UserRepository userRepository;

    @Value("${gitee.state}")
    private String state;

    @Value("${gitee.token.url}")
    private String tokenUrl;

    @Value("${gitee.user.url}")
    private String userUrl;

    @Value("${gitee.user.prefix}")
    private String userPrefix;

    @Override
    public String login3rd(HttpServletRequest request) {
        String code = request.getParameter("code");
        String state = request.getParameter("state");

        return "";
    }
}
